<!doctype html>
<meta charset="utf-8">
<title>Test reference</title>
<dir>
  <li>A
</dir>
<dir>
  <li>B
</dir>
